package com.zhima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhima.dto.QueryQuestionCondition;
import com.zhima.entity.OjQuestionPublish;
import com.zhima.vo.QuestionTableVO;

import java.util.List;

public interface ElasticSearchService {

    List<QuestionTableVO> searchQuestions(QueryQuestionCondition queryQuestionCondition, Long pageNum, Long pageSize, Page<QuestionTableVO> ans);

    String saveOrUpdate(OjQuestionPublish ojQuestionPublish);

    boolean removeQuestionPublish(Long questionId);
}
